﻿using System;
using System.Windows.Forms;

namespace BADDGUI
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>

        [STAThread]
        static void Main()
        {
            //ToolStripManager.Renderer = new Office2007Renderer();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //Initialize Database
            BLCGlobalData.InitializeData(BADDGUI.Properties.Settings.Default.BASELOG_DATA);

            //Initialize User Interface
            BLCGlobalObject.InitializeObject();

            //Startup Point
            if (System.Diagnostics.Debugger.IsAttached)
            {
                Application.Run(BLCGlobalObject.FrmMain);
                //Application.Run(new VirtualJustInTimeDemo());
            }
            else Application.Run(BLCGlobalObject.FrmLogin);
        }
    }
}